package com.xxl.job.executor.xxljob.autoregister.service;

import com.xxl.job.executor.xxljob.autoregister.enums.XxlExecutorRouteStrategyEnum;

/**
 * @author lukaidong
 * @date 2024/02/29
 * @description xxl-job自动注册工具类
 */
public interface IXxlJobAutoRegister {

    /**
     * 注册 or 启动 job任务
     *
     * @param jobName       jobName
     * @param cron          cron表达式
     * @param routeStrategy 路由策略
     */
    void registerOrStartJob(String jobName, String cron, XxlExecutorRouteStrategyEnum routeStrategy);
}
